package com.lyd.collections.immutable;

import java.util.List;

/**
 * @Author:lyd
 **/
public class ImmutableDemo1 {
    public static void main(String[] args) {
        //不可变的集合才jdk9才出现
        List<String> strList = List.of("张三", "李四", "王五");
//        strList.add("hh");
        for (String s : strList) {
            System.out.println(s);
        }
    }
}
